#include <ControlPointHelper>
#include <Element>

ControlPointHelper::ControlPointHelper(Element *parent) :
    Helper(parent)
{
}

void ControlPointHelper::setX(float x)
{
    m_point.setX(x);
}

void ControlPointHelper::setY(float y)
{
    m_point.setY(y);
}

float ControlPointHelper::x() const
{
    return m_point.x();
}

float ControlPointHelper::y() const
{
    return m_point.y();
}

ControlPointHelper &ControlPointHelper::operator =(const QPointF &pt)
{
    m_point = pt;
    return *this;
}

ControlPointHelper::operator QPointF() const
{
    return m_point;
}
